package ar.uba.fi.tonyvaliente.documents;

import java.util.LinkedList;

public class QueryDocumentsResult {

	private LinkedList<Integer> result;
	private StringBuffer messages;

	public QueryDocumentsResult() {
		result = new LinkedList<Integer>();
		messages = new StringBuffer();
	}

	public void addResult(int documentId) {
		result.add(new Integer(documentId));
	}

	public LinkedList<Integer> getResults() {
		return result;
	}

	public void addMessage(String message) {
		messages.append(message);
	}

	public String getMessages() {
		return messages.toString();
	}
}
